import request from '@/utils/request'

// 查询项目任务列表
export function listProjectTask(query) {
  return request({
    url: '/supply/projectTask/list',
    method: 'get',
    params: query
  })
}

// 查询项目任务详细
export function getProjectTask(taskId) {
  return request({
    url: '/supply/projectTask/' + taskId,
    method: 'get'
  })
}

// 新增项目任务
export function addProjectTask(data) {
  return request({
    url: '/supply/projectTask',
    method: 'post',
    data: data
  })
}

// 修改项目任务
export function updateProjectTask(data) {
  return request({
    url: '/supply/projectTask',
    method: 'put',
    data: data
  })
}

// 删除项目任务
export function delProjectTask(taskId) {
  return request({
    url: '/supply/projectTask/' + taskId,
    method: 'delete'
  })
}
